package com.foreknow.trains.train2;

public class ClassB implements InterfaceA {

    @Override
    public int method(int n) {
        int num=1;
        for (int i=0;i<n;i++) {
            num =num*(i+1);
        }
        System.out.print(n+"!"+"=");
        return num;
    }
}
